home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / GRAPHICS / BMPWIZ / BMPWIZ.ZIP / FLAG.BAS < prev    next >
Unknown  |  1994-02-05  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Memotech MTX BASIC source (document/memotechMTXBASICSource) ext Unsupported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 19 05 00 00 0d 0a 27 20 | 46 6c 61 67 20 65 66 66 |......' |Flag eff|
|00000010| 65 63 74 2e 0d 0a 27 20 | 55 73 65 20 63 6f 73 69 |ect...' |Use cosi|
|00000020| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 6d 6f |n functi|on to mo|
|00000030| 64 69 66 79 20 69 6e 70 | 75 74 20 69 6d 61 67 65 |dify inp|ut image|
|00000040| 20 73 69 6d 75 6c 61 74 | 69 6e 67 20 61 20 66 6c | simulat|ing a fl|
|00000050| 61 67 2c 0d 0a 27 20 75 | 73 69 6e 67 20 61 6c 73 |ag,..' u|sing als|
|00000060| 6f 20 79 20 64 69 66 66 | 65 72 65 6e 74 69 61 6c |o y diff|erential|
|00000070| 20 74 6f 20 6d 6f 64 69 | 66 79 20 62 72 69 67 68 | to modi|fy brigh|
|00000080| 74 6e 65 73 73 2e 0d 0a | 27 20 46 6f 72 20 61 20 |tness...|' For a |
|00000090| 62 65 74 74 65 72 20 61 | 6e 64 20 66 61 73 74 65 |better a|nd faste|
|000000a0| 72 20 72 65 73 75 6c 74 | 20 75 73 65 20 61 20 32 |r result| use a 2|
|000000b0| 34 20 62 69 74 20 6f 75 | 74 70 75 74 2e 0d 0a 0d |4 bit ou|tput....|
|000000c0| 0a 27 20 49 6e 70 75 74 | 3a 09 34 2d 38 2d 32 34 |.' Input|:.4-8-24|
|000000d0| 20 62 69 74 0d 0a 27 20 | 4f 75 74 70 75 74 3a 09 | bit..' |Output:.|
|000000e0| 34 2d 38 2d 32 34 20 62 | 69 74 20 28 32 34 20 72 |4-8-24 b|it (24 r|
|000000f0| 65 63 63 6f 6d 65 6e 64 | 65 64 29 0d 0a 0d 0a 27 |eccomend|ed)....'|
|00000100| 20 41 75 74 68 6f 72 3a | 09 41 6e 64 72 65 61 20 | Author:|.Andrea |
|00000110| 42 65 6e 6f 6e 69 09 09 | 09 20 72 65 76 3a 09 31 |Benoni..|. rev:.1|
|00000120| 2e 32 0d 0a 0d 0a 0d 0a | 73 74 72 69 6e 67 09 69 |.2......|string.i|
|00000130| 6e 70 46 69 6c 65 2c 6f | 75 74 46 69 6c 65 0d 0a |npFile,o|utFile..|
|00000140| 44 65 76 43 6f 6e 09 49 | 62 6d 70 2c 4f 62 6d 70 |DevCon.I|bmp,Obmp|
|00000150| 0d 0a 52 47 42 09 70 69 | 78 0d 0a 66 6c 6f 61 74 |..RGB.pi|x..float|
|00000160| 20 20 09 78 2c 79 2c 6c | 65 76 2c 4c 2c 4f 4c 2c | .x,y,l|ev,L,OL,|
|00000170| 56 2c 50 78 2c 50 78 0d | 0a 0d 0a 69 6e 70 46 69 |V,Px,Px.|...inpFi|
|00000180| 6c 65 3d 22 74 65 73 74 | 69 2e 62 6d 70 22 0d 0a |le="test|i.bmp"..|
|00000190| 6f 75 74 46 69 6c 65 3d | 22 74 65 73 74 6f 2e 62 |outFile=|"testo.b|
|000001a0| 6d 70 22 0d 0a 6c 65 76 | 3d 35 0d 0a 49 62 6d 70 |mp"..lev|=5..Ibmp|
|000001b0| 3d 4c 6f 61 64 49 6d 61 | 67 65 28 69 6e 70 46 69 |=LoadIma|ge(inpFi|
|000001c0| 6c 65 29 0d 0a 4f 62 6d | 70 3d 43 72 65 61 74 65 |le)..Obm|p=Create|
|000001d0| 49 6d 61 67 65 28 49 62 | 6d 70 2e 57 69 64 74 68 |Image(Ib|mp.Width|
|000001e0| 2c 6c 65 76 2a 32 2b 49 | 62 6d 70 2e 48 65 69 67 |,lev*2+I|bmp.Heig|
|000001f0| 68 74 2c 49 62 6d 70 2e | 42 69 74 43 6f 75 6e 74 |ht,Ibmp.|BitCount|
|00000200| 29 20 0d 0a 09 09 09 09 | 20 20 20 27 20 6f 72 20 |) ......| ' or |
|00000210| 73 75 62 73 74 69 74 75 | 74 65 20 49 62 6d 70 2e |substitu|te Ibmp.|
|00000220| 42 69 74 43 6f 75 6e 74 | 20 77 69 74 68 20 32 34 |BitCount| with 24|
|00000230| 0d 0a 0d 0a 69 66 28 28 | 49 62 6d 70 2e 42 69 74 |....if((|Ibmp.Bit|
|00000240| 43 6f 75 6e 74 3d 38 29 | 09 7c 28 49 62 6d 70 2e |Count=8)|.|(Ibmp.|
|00000250| 42 69 74 43 6f 75 6e 74 | 3d 34 29 29 09 09 27 20 |BitCount|=4))..' |
|00000260| 69 66 20 34 20 6f 72 20 | 38 20 62 69 74 20 63 6f |if 4 or |8 bit co|
|00000270| 70 79 20 70 61 6c 65 74 | 74 65 09 09 09 0d 0a 20 |py palet|te..... |
|00000280| 20 46 6f 72 20 79 3d 30 | 20 74 6f 20 32 35 35 0d | For y=0| to 255.|
|00000290| 0a 20 20 20 20 20 70 69 | 78 3d 47 65 74 50 61 6c |. pi|x=GetPal|
|000002a0| 65 74 74 65 28 49 62 6d | 70 2c 79 29 0d 0a 20 20 |ette(Ibm|p,y).. |
|000002b0| 20 20 20 53 65 74 50 61 | 6c 65 74 74 65 28 4f 62 | SetPa|lette(Ob|
|000002c0| 6d 70 2c 79 2c 70 69 78 | 29 0d 0a 20 20 4e 65 78 |mp,y,pix|).. Nex|
|000002d0| 74 20 79 0d 0a 45 6e 64 | 69 66 0d 0a 0d 0a 50 78 |t y..End|if....Px|
|000002e0| 3d 33 2e 31 34 2a 36 2f | 49 62 6d 70 2e 57 69 64 |=3.14*6/|Ibmp.Wid|
|000002f0| 74 68 0d 0a 0d 0a 46 6f | 72 20 79 3d 30 20 74 6f |th....Fo|r y=0 to|
|00000300| 20 49 62 6d 70 2e 48 65 | 69 67 68 74 2d 31 0d 0a | Ibmp.He|ight-1..|
|00000310| 20 20 20 46 6f 72 20 78 | 3d 30 20 74 6f 20 49 62 | For x|=0 to Ib|
|00000320| 6d 70 2e 57 69 64 74 68 | 2d 31 0d 0a 20 20 20 20 |mp.Width|-1.. |
|00000330| 20 20 4c 3d 6c 65 76 2a | 63 6f 73 28 78 2a 50 78 | L=lev*|cos(x*Px|
|00000340| 29 09 09 09 27 20 63 61 | 6c 63 20 79 20 64 69 73 |)...' ca|lc y dis|
|00000350| 74 6f 72 73 69 6f 6e 0d | 0a 20 20 20 20 20 20 56 |torsion.|. V|
|00000360| 3d 2e 37 30 2d 28 2e 33 | 30 2a 28 4f 4c 2d 4c 29 |=.70-(.3|0*(OL-L)|
|00000370| 29 09 09 09 27 20 63 61 | 6c 63 20 64 69 66 66 65 |)...' ca|lc diffe|
|00000380| 72 65 6e 74 69 61 6c 0d | 0a 20 20 20 20 20 20 4f |rential.|. O|
|00000390| 4c 3d 4c 0d 0a 20 20 20 | 20 20 20 70 69 78 3d 47 |L=L.. | pix=G|
|000003a0| 65 74 50 69 78 65 6c 28 | 49 62 6d 70 2c 78 2c 79 |etPixel(|Ibmp,x,y|
|000003b0| 29 09 09 09 27 20 67 65 | 74 20 69 6e 70 75 74 20 |)...' ge|t input |
|000003c0| 69 6d 61 67 65 20 70 69 | 78 65 6c 0d 0a 20 20 20 |image pi|xel.. |
|000003d0| 20 20 20 70 69 78 2e 52 | 65 64 3d 70 69 78 2e 52 | pix.R|ed=pix.R|
|000003e0| 65 64 2a 56 09 09 09 27 | 20 6d 6f 64 69 66 79 20 |ed*V...'| modify |
|000003f0| 63 6f 6c 6f 72 0d 0a 20 | 20 20 20 20 20 70 69 78 |color.. | pix|
|00000400| 2e 47 72 65 65 6e 3d 70 | 69 78 2e 47 72 65 65 6e |.Green=p|ix.Green|
|00000410| 2a 56 0d 0a 20 20 20 20 | 20 20 70 69 78 2e 42 6c |*V.. | pix.Bl|
|00000420| 75 65 3d 70 69 78 2e 42 | 6c 75 65 2a 56 0d 0a 20 |ue=pix.B|lue*V.. |
|00000430| 20 20 20 20 20 53 65 74 | 50 69 78 65 6c 28 4f 62 | Set|Pixel(Ob|
|00000440| 6d 70 2c 78 2c 79 2b 4c | 2b 6c 65 76 2c 70 69 78 |mp,x,y+L|+lev,pix|
|00000450| 29 09 09 27 20 70 75 74 | 20 70 69 78 65 6c 20 6f |)..' put| pixel o|
|00000460| 6e 20 6f 75 74 70 75 74 | 0d 0a 20 20 20 4e 65 78 |n output|.. Nex|
|00000470| 74 20 78 0d 0a 20 20 20 | 69 66 28 79 25 31 30 3d |t x.. |if(y%10=|
|00000480| 30 29 0d 0a 20 20 20 20 | 20 20 50 72 65 76 69 65 |0).. | Previe|
|00000490| 77 28 4f 62 6d 70 2c 22 | 4f 75 74 70 75 74 22 2c |w(Obmp,"|Output",|
|000004a0| 35 2c 35 29 0d 0a 20 20 | 20 20 20 20 44 73 70 57 |5,5).. | DspW|
|000004b0| 68 69 6c 65 28 22 46 69 | 6c 74 65 72 69 6e 67 22 |hile("Fi|ltering"|
|000004c0| 2c 31 30 30 2f 49 62 6d | 70 2e 48 65 69 67 68 74 |,100/Ibm|p.Height|
|000004d0| 2a 79 29 0d 0a 20 20 20 | 65 6e 64 69 66 0d 0a 4e |*y).. |endif..N|
|000004e0| 65 78 74 20 79 0d 0a 44 | 73 70 57 68 69 6c 65 28 |ext y..D|spWhile(|
|000004f0| 22 22 2c 30 29 0d 0a 53 | 61 76 65 49 6d 61 67 65 |"",0)..S|aveImage|
|00000500| 28 4f 62 6d 70 2c 6f 75 | 74 46 69 6c 65 29 0d 0a |(Obmp,ou|tFile)..|
|00000510| 44 73 70 4d 65 73 28 22 | 45 6e 64 22 29 |DspMes("|End") |
+--------+-------------------------+-------------------------+--------+--------+